<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml">
	<html lang="zh-CN">

	<head>
		<meta charset="utf-8" />
		<title>用户中心</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<link type="text/css" rel="stylesheet" href="css/common.css" />
		<link type="text/css" rel="stylesheet" href="css/user.css" />
		<link type="text/css" rel="stylesheet" href="css/color-style.css" />
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/layer.js"></script>
		<script type="text/javascript" src="js/jquery.method.js"></script>
		<script type="text/javascript" src="js/jquery.modal.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/jquery.tablelist.js"></script>
		<script type="text/javascript" src="js/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/common1.js"></script>
		<script type="text/javascript" src="js/user.js"></script>
	</head>

	<body>
		<div id="nav" class="bg-color">
			<div class="nav-content w1210">
				<div class="logo-info">
					<a href="/" target="_blank" class="logo fore1">
						<img src="css/mall_logo_0_white.png" style="margin-top: 10px;" />
					</a>
					<div class="user-link">
						<a href="/user.html" target="_self" class="fore2">我的商城</a>
						<a href="/" target="_blank" class="fore3">返回商城首页</a>
					</div>
				</div>
				<div class="navitems">
					<ul>
						<li class="fore-1">
							<a href="/user.html" target="_self" href="">首页</a>
						</li>
						<li class="fore-3">
							<div class="dl">
								<div class="dt">
									<span>账户设置</span>
									<b></b>
								</div>
								<div class="dd">
									<a href="/user/profile.html" target="_self">
										<span>个人资料</span>
									</a>
									<a href="/user/security.html" target="_self">
										<span>账户安全</span>
									</a>
									<a href="/user/bind.html" target="_self">
										<span>账号绑定</span>
									</a>
									<a href="/user/address.html" target="_self">
										<span>收货地址</span>
									</a>
								</div>
							</div>
						</li>
						<li class="fore-4">
							<a href="/user/message/internal.html">
								消息

							</a>
						</li>
					</ul>
				</div>

			</div>
		</div>
		</div>

		<div id="content">
			<div class="content w1210 clearfix">
				<!-- 引入左侧导航条文件 -->
				<div class="con-left fl">
					<div class="nav-list">
						<div class="func func1">
							<p class="title">
								<i></i>
								<span>会员中心</span>
							</p>
							<a href="/user/center.html" class="item curs">
								<span>欢迎页</span>
								<i></i>
							</a>
							<a href="/user/profile.html" class="item ">
								<span>个人资料</span>
								<i></i>
							</a>
							<a href="/user/security.html" class="item ">
								<span>账户安全</span>
								<i></i>
							</a>

							<a href="/user/address.html" class="item ">
								<span>收货地址</span>
								<i></i>
							</a>
							<a href="/user/message/internal.html" class="item ">
								<span>我的消息</span>
								<i></i>
							</a>
							<a href="/user/growth-value.html" class="item ">
								<span>我的成长值</span>
								<i></i>
							</a>
						</div>
						<div class="func func2">
							<p class="title">
								<i></i>
								<span>交易中心</span>
							</p>
							<a href="/user/order.html" class="item ">
								<span>我的订单</span>
								<i></i>
							</a>
							<a href="/user/evaluate/index.html" class="item ">
								<span>我的评价</span>
								<i></i>
							</a>
							<a href="/user/back.html" class="item ">
								<span>退款退货</span>
								<i></i>
							</a>
							<!-- <a href="/user/replace.html" class="item">
				<span>换货维修</span>
				<i></i>
			</a> -->
							<a href="/user/complaint.html" class="item ">
								<span>我的投诉</span>
								<i></i>
							</a>
							<a href="/user/collect/goods.html" class="item ">
								<span>我的收藏</span>
								<i></i>
							</a>
							<!-- <a href="" class="item"><span>我的二手</span><i></i></a> -->
						</div>
						<div class="func func3">
							<p class="title">
								<i></i>
								<span>资金中心</span>
							</p>
							<a href="/user/capital-account.html" class="item ">
								<span>我的资金账户</span>
								<i></i>
							</a>
							<a href="/user/recharge.html" class="item  ">
								<span>我的充值</span>
								<i></i>
							</a>
							<a href="" class="item">
								<span>我的积分</span>
								<i></i>
							</a>
							<a href="/user/bonus.html" class="item ">
								<span>我的优惠券</span>
								<i></i>
							</a>
						</div>
						<div class="func func4">
							<p class="title">
								<i></i>
								<span>服务中心</span>
							</p>
							<a href="/shop/apply/index.html" class="item" target="_blank">
								<span>退换货政策</span>
								<i></i>
							</a>
							<a href="/shop/apply/index.html" class="item" target="_blank">
								<span>操作帮助</span>
								<i></i>
							</a>
						</div>
					</div>
				</div>

				<!-- 正文，由view提供 -->
				<div class="con-right fr">
					<script type="text/javascript" src="js/dateselector.js"></script>
					<div class="con-right-text">
						<div class="tabmenu">
							<div class="user-status">
								<span class="active" id="profile1" onclick="setTab(&#39;profile&#39;,1,3)">
				<a href="javascript:void(0);" target="_self">
					<span>基本信息</span>
								<span class="vertical-line">|</span>
								</a>
								</span>
								<span class="" id="profile2" onclick="setTab(&#39;profile&#39;,2,3)">
				<a href="javascript:void(0);" target="_self">
					<span>实名认证</span>
								<span class="vertical-line">|</span>
								</a>
								</span>
								<span class="" id="profile3" onclick="setTab(&#39;profile&#39;,3,3)">
				<a href="javascript:void(0);" target="_self">
					<span>头像信息</span>
								</a>
								</span>
							</div>
						</div>
						<div class="content-info">
							<div id="con_profile_1">
								<form id="UserModel" class="form-horizontal" name="UserModel" action="http://www.itsource.com/user/profile/edit-base" method="post" novalidate="novalidate">
									<input type="hidden" name="_csrf" value="aHphQVhTQXlRLQAyFCV4FA5IG3Y1MBc6Mj9MAwcEAjY8EgwLMxo2Og==">
									<div class="form-group form-group-spe">
										<label class="input-left">
					<span>当前头像：</span>
				</label>
										<div class="profile-avatar">
											<img id="headimg" src="img/14865372927544.png" width="120" height="120">
										</div>
									</div>
									<div class="form-group form-group-spe">
										<label class="input-left">
					<span>会员名称：</span>
				</label>
										<span class="input-none">SZY083SDPF5239</span>
									</div>

									<!-- 会员昵称 -->
									<div class="form-group form-group-spe">
										<label for="usermodel-nickname" class="input-left">
<span class="spark">*</span>
<span>昵称：</span>
</label>
										<div class="form-control-box">

											<input type="text" id="usermodel-nickname" class="form-control" name="UserModel[nickname]" aria-required="true">

										</div>

										<div class="invalid"><span class="hint">与平台业务或者店铺名称冲突的昵称，平台将有可能收回</span></div>
									</div>
									<div class="form-group form-group-spe">
										<label class="input-left">
					<span>会员等级：</span>
				</label>
										<span class="input-none">
					初级会员一级
					<span>
						我的成长值：

						<font class="second-color">0</font>
					</span>
										<span>
						再积累
						<font class="second-color">2</font>
						成长值即可升级至初级会员二级
					</span>
										</span>
									</div>

									<!-- 性别 -->
									<div class="form-group form-group-spe">
										<label for="usermodel-sex" class="input-left">

<span>性别：</span>
</label>
										<div class="form-control-box">

											<input type="hidden" name="UserModel[sex]" value="0"><span id="usermodel-sex" class="radio" name="UserModel[sex]"><label class=""><input type="radio" name="UserModel[sex]" value="0" checked=""> 保密</label>
<label class=""><input type="radio" name="UserModel[sex]" value="1"> 男</label>
<label class=""><input type="radio" name="UserModel[sex]" value="2"> 女</label></span>

										</div>

										<div class="invalid"></div>
									</div>

									<div class="form-group form-group-spe">
										<label class="input-left">
					<span>生日：</span>
				</label>
										<div class="form-control-box">
											<span class="select">
						<select id="sel_year" class="form-control"><option value="0">请选择</option><option value="2017">2017</option><option value="2016">2016</option><option value="2015">2015</option><option value="2014">2014</option><option value="2013">2013</option><option value="2012">2012</option><option value="2011">2011</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select>
						年
						<select id="sel_month" class="form-control"><option value="0">请选择</option></select>
						月
						<select id="sel_day" class="form-control"><option value="0">请选择</option></select>
						日
					</span>
										</div>
										<input type="hidden" id="birthday" class="form-control" name="UserModel[birthday]" value="0">
									</div>

									<div class="form-group form-group-spe">
										<label class="input-left">
					<span>现居住地：</span>
				</label>
										<input type="hidden" id="address_code" name="address_code" value="">
										<div class="form-control-box">
											<span id="address_now" class="select"></span>
										</div>
									</div>

									<!-- 详细地址 -->
									<div class="form-group form-group-spe">
										<label for="usermodel-detail_address" class="input-left">

<span>详细地址：</span>
</label>
										<div class="form-control-box">

											<textarea id="usermodel-detail_address" class="form-control" name="UserModel[detail_address]" rows="5" placeholder="建议您如实填写详细收货地址，例如街道名称，门牌号码，楼层和房间号等信息"></textarea>

										</div>

										<div class="invalid"></div>
									</div>

									<div class="act">
										<input type="submit" value="保存" id="btn_submit">
									</div>

								</form>
								<div class="operat-tips">
									<h4>个人资料注意事项</h4>
									<ul class="operat-panel">
										<!-- <li>
						<span>完善个人基本信息可获得点积分奖励，赶快完善信息赢积分吧！</span>
					</li> -->
										<li>
											<span>成长值：是会员通过购物所获得的经验值，由累计购物金额计算获得，成长值获得根据确认收货时间计算，成长值按照交易金额的个位数取整计算：例如会员的订单是88.2元，则确认收货后可以得到88点成长值。</span>
										</li>
									</ul>
								</div>
							</div>
							<div id="con_profile_2" style="display: none">
								<form id="UserRealModel" class="form-horizontal" name="UserRealModel" action="http://www.itsource.com/user/profile/edit-real" method="post" enctype="multipart/form-data" novalidate="novalidate">
									<!-- 真实姓名 -->
									<div class="form-group form-group-spe">
										<label for="userrealmodel-real_name" class="input-left">
<span class="spark">*</span>
<span>真实姓名：</span>
</label>
										<div class="form-control-box">

											<input type="text" id="userrealmodel-real_name" class="form-control" name="UserRealModel[real_name]" aria-required="true">

										</div>

										<div class="invalid"></div>
									</div>

									<div class="form-group form-group-spe">
										<label for="userrealmodel-id_code" class="input-left">
<span class="spark">*</span>
<span>身份证号码：</span>
</label>
										<div class="form-control-box">

											<input type="text" id="userrealmodel-id_code" class="form-control" name="UserRealModel[id_code]" aria-required="true">

										</div>

										<div class="invalid"><span class="hint">身份证号码位数为15位或18位</span></div>
									</div>

									<div class="form-group form-group-spe">
										<label for="userrealmodel-card_pic1" class="input-left">
<span class="spark">*</span>
<span>身份证正面照：</span>
</label>
										<div class="form-control-box">

											<!-- 图片组 start -->
											<div id="card_pic1_imagegroup_container" class="szy-imagegroup" data-id="userrealmodel-card_pic1" data-size="1">
												<ul class="image-group">
													<li class="image-group-button">
														<div class="image-group-bg"></div><input type="file" id="imagegroup_file_1486538084500000" name="imagegroup_file_1486538084500000" class="inputstyle"></li>
												</ul>
											</div>

											<input type="hidden" id="userrealmodel-card_pic1" class="form-control" name="UserRealModel[card_pic1]" aria-required="true">
											<!-- 图片组 end -->

										</div>

										<div class="invalid"><span class="hint">图片请使用400*200像素jpg/gif/png格式的图片，并且图片大小不可超过2M。</span></div>
									</div>

									<div class="form-group form-group-spe">
										<label for="userrealmodel-card_pic2" class="input-left">
<span class="spark">*</span>
<span>身份证背面照：</span>
</label>
										<div class="form-control-box">

											<!-- 图片组 start -->
											<div id="card_pic2_imagegroup_container" class="szy-imagegroup" data-id="userrealmodel-card_pic2" data-size="1">
												<ul class="image-group">
													<li class="image-group-button">
														<div class="image-group-bg"></div><input type="file" id="imagegroup_file_1486538084506001" name="imagegroup_file_1486538084506001" class="inputstyle"></li>
												</ul>
											</div>

											<input type="hidden" id="userrealmodel-card_pic2" class="form-control" name="UserRealModel[card_pic2]" aria-required="true">
											<!-- 图片组 end -->

										</div>

										<div class="invalid"><span class="hint">图片请使用400*200像素jpg/gif/png格式的图片，并且图片大小不可超过2M。</span></div>
									</div>

									<div class="form-group form-group-spe">
										<label for="userrealmodel-card_pic3" class="input-left">
<span class="spark">*</span>
<span>本人手持身份证正面照：</span>
</label>
										<div class="form-control-box">

											<!-- 图片组 start -->
											<div id="card_pic3_imagegroup_container" class="szy-imagegroup" data-id="userrealmodel-card_pic3" data-size="1">
												<ul class="image-group">
													<li class="image-group-button">
														<div class="image-group-bg"></div><input type="file" id="imagegroup_file_1486538084509002" name="imagegroup_file_1486538084509002" class="inputstyle"></li>
												</ul>
											</div>

											<input type="hidden" id="userrealmodel-card_pic3" class="form-control" name="UserRealModel[card_pic3]" aria-required="true">
											<!-- 图片组 end -->

										</div>

										<div class="invalid"><span class="hint">图片请使用400*200像素jpg/gif/png格式的图片，并且图片大小不可超过2M。</span></div>
									</div>

									<div class="act">
										<input type="submit" value="保存" id="btn_submit_real">
									</div>

								</form>
								<div class="operat-tips">
									<h4>为什么要进行实名认证?</h4>
									<ul class="operat-panel">
										<!-- <li>
						<span>实名认证后您可获得平台方送出的点积分奖励，赶快实名认证赢积分吧！</span>
					</li> -->
										<li>
											<span>实名认证需要网站方管理员人工审核，审核通过后即认证成功。</span>
										</li>
									</ul>
								</div>
							</div>
							<div id="con_profile_3" style="display: none">
								<!--<form id="Img_Load" action="/user/profile/up-load" enctype="multipart/form-data" method="post">  -->
								<div class="update-face-cont">
									<div class="update-left">
										<div class="update-btn">
											<link type="text/css" rel="stylesheet" href="css/style.css">
											<div class="btn">
												<a href="javascript:void(0);" class="upload-img">
													<label for="upload-file">选择您要上传的头像</label>
												</a>
												<input accept=".JPG,.GIF,.PNG,.JPEG,.BMP" type="file" value="本地上传" class="file-botton" name="upload-file" id="upload-file">
											</div>
											<p class="explain">仅支持JPG、GIF、PNG、JPEG、BMP格式，文件小于4M</p>
										</div>
										<div class="img-cont">
											<div id="context_img" class="img-b" style="background-image: url(&quot;http://images.68mall.com/system/config/default_image/default_user_portrait_0.png&quot;); background-size: 80px 80px; background-position: 225px 135px; background-repeat: no-repeat;">

												<div class="thumbBox">
													<img id="default_img" style="width: 100%; height: 100%;" src="img/14865372927544.png">
												</div>
											</div>
											<p class="submit" style="display: none">
												<input type="button" id="btnCrop" class="btn submit" value="裁切">
												<input type="button" id="btnZoomIn" class="btn submit" value="+">
												<input type="button" id="btnZoomOut" class="btn submit" value="-">
												<input type="hidden" value="" id="load_img" name="load_img">
												<input id="upload" class="btn submit" value="保存" type="button">
											</p>
										</div>
									</div>
									<div class="update-right">
										<div class="smt">
											<h3>效果预览</h3>
										</div>
										<div class="smc">
											你上传的图片会自动生成2种尺寸，请注意小尺寸的头像是否清晰
											<div class="img-cont img-m-cont">
												<img id="img1" src="img/14865372927544.png">
											</div>
											120*120像素
											<div class="/img-cont img-s-cont">
												<img id="img5" src="img/14865372927544.png">
											</div>
											50*50像素
										</div>
									</div>
								</div>
								<!--</form>  -->
							</div>
						</div>
					</div>
					<script type="text/javascript" src="js/cropbox.js"></script>
					<script type="text/javascript" src="js/jquery.region.js"></script>
					<script type="text/javascript">
						$(window).load(function() {
							var options = {
								thumbBox: '.thumbBox',
								imgSrc: "http://images.68mall.com/system/config/default_image/default_user_portrait_0.png"
							}

							var cropper = $('.img-b').cropbox(options);
							$('#upload-file').on('change', function() {
								$(".thumbBox").css("background-image", "url('')");
								var f = document.getElementById("upload-file").files;
								if(f[0].size < "4194304") {
									$("#default_img").remove();
									var reader = new FileReader();
									reader.onload = function(e) {
										options.imgSrc = e.target.result;
										cropper = $('.img-b').cropbox(options);
										$(".img-b .thumbBox").css("border", "1px solid rgb(102, 102, 102)");
										$(".img-b .thumbBox").css("box-shadow", "0 0 0 1000px rgba(0, 0, 0, 0.5)");
									}
									reader.readAsDataURL(this.files[0]);
									$(".submit").show();
								} else {
									$.msg("上传图片过大");
								}
							})
							$('#btnZoomIn').on('click', function() {
								$(".thumbBox").css("background-image", "url('')");
								cropper.zoomIn();
							})
							$("#upload").on("click", function() {
								if($("#load_img").val() == "") {
									$.msg("请先对头像进行裁剪");
								} else {
									var img = $("#load_img").val()
									$.post('/user/profile/up-load', {
										"load_img": img
									}, function(result) {
										$("#headimg").attr("src", result.url);
										$.msg(result.message);
									}, "json");
								}
							})
							$('#btnCrop').on('click', function() {
								var img = cropper.getDataURL();
								$('.cropped').html('');
								$("#load_img").val(img);
								$(".thumbBox").css("background-image", "url(" + img + ")");
								$("#context_img").css("background-image", "url('')");
								$('#img1').attr("src", img);
								$('#img5').attr("src", img);
								$("#upload").show();
							})
							$('#btnZoomOut').on('click', function() {
								$(".thumbBox").css("background-image", "url('')");
								cropper.zoomOut();
							})
						});
					</script>
					<script type="text/javascript">
						$("#address_now").regionselector({
							value: '',
							select_class: "select",
							change: function(value, names, is_last) {
								$("#address_code").val(value);
							}
						});
					</script>
					<script>
						$(function() {
							$.dateselector({
								defaulttime: "",
								sel_unix: "#birthday"
							});
						});
					</script>

					<!-- 图片预览 -->
					<script type="text/javascript" src="js/jquery.ajaxfileupload.js"></script>
					<script type="text/javascript" src="js/imgPreview.js"></script>
					<script type="text/javascript" src="js/jquery.widget.js"></script>
					<!-- 表单验证 -->
					<script type="text/javascript" src="js/jquery.validate.js"></script>
					<script type="text/javascript" src="js/jquery.validate.custom.js"></script>
					<script type="text/javascript" src="js/messages_zh.js"></script>
					<script type="text/javascript">
						$(".szy-imagegroup").each(function() {
							var id = $(this).data("id");
							var size = $(this).data("size");

							var target = $("#" + id);
							var value = $(target).val();

							$(this).imagegroup({
								host: "http://itsource.oss-cn-beijing.aliyuncs.com/图片/",
								size: size,
								values: value.split("|"),
								// 回调函数
								callback: function(data) {
									var values = this.values;
									if(!values) {
										values = [];
									}
									values = values.join("|");
									target.val(values);
								},
								// 移除的回调函数
								remove: function(value, values) {
									var values = this.values;
									if(!values) {
										values = [];
									}
									values = values.join("|");
									target.val(values);
								}
							});
						});
					</script>
					<script type="text/javascript">
						$().ready(function() {
							var validator = $("#UserModel").validate();
							// 验证规则，此验证规则会影响编辑器中JavaScript的的格式化操作
							$.validator.addRules([{
								"id": "usermodel-nickname",
								"name": "UserModel[nickname]",
								"attribute": "nickname",
								"rules": {
									"required": true,
									"messages": {
										"required": "昵称不能为空。"
									}
								}
							}, {
								"id": "usermodel-user_name",
								"name": "UserModel[user_name]",
								"attribute": "user_name",
								"rules": {
									"required": true,
									"messages": {
										"required": "用户名不能为空。"
									}
								}
							}, {
								"id": "usermodel-user_name",
								"name": "UserModel[user_name]",
								"attribute": "user_name",
								"rules": {
									"username": {
										"pattern": /^[a-zA-Z0-9_\u4e00-\u9fa5]{4,20}$/,
										"not": false,
										"skipOnEmpty": 1
									},
									"match": {
										"pattern": /^\d+$/,
										"not": true,
										"skipOnEmpty": 1
									},
									"messages": {
										"username": "用户名只能由4-20个字，支持汉字、字母、数字、下划线“_”构成的组合",
										"match": "用户名不能为纯数字"
									}
								}
							}, {
								"id": "usermodel-sex",
								"name": "UserModel[sex]",
								"attribute": "sex",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "性别必须是整数。"
									}
								}
							}, {
								"id": "usermodel-birthday",
								"name": "UserModel[birthday]",
								"attribute": "birthday",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "出生日期必须是整数。"
									}
								}
							}, {
								"id": "usermodel-pay_point",
								"name": "UserModel[pay_point]",
								"attribute": "pay_point",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "消费积分必须是整数。"
									}
								}
							}, {
								"id": "usermodel-rank_point",
								"name": "UserModel[rank_point]",
								"attribute": "rank_point",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "成长值必须是整数。"
									}
								}
							}, {
								"id": "usermodel-address_id",
								"name": "UserModel[address_id]",
								"attribute": "address_id",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "默认收货地址必须是整数。"
									}
								}
							}, {
								"id": "usermodel-rank_id",
								"name": "UserModel[rank_id]",
								"attribute": "rank_id",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "用户等级必须是整数。"
									}
								}
							}, {
								"id": "usermodel-mobile_validated",
								"name": "UserModel[mobile_validated]",
								"attribute": "mobile_validated",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否已验证手机必须是整数。"
									}
								}
							}, {
								"id": "usermodel-email_validated",
								"name": "UserModel[email_validated]",
								"attribute": "email_validated",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否已验证邮箱必须是整数。"
									}
								}
							}, {
								"id": "usermodel-reg_time",
								"name": "UserModel[reg_time]",
								"attribute": "reg_time",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "注册时间必须是整数。"
									}
								}
							}, {
								"id": "usermodel-last_time",
								"name": "UserModel[last_time]",
								"attribute": "last_time",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "最近登录时间必须是整数。"
									}
								}
							}, {
								"id": "usermodel-visit_count",
								"name": "UserModel[visit_count]",
								"attribute": "visit_count",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "访问次数必须是整数。"
									}
								}
							}, {
								"id": "usermodel-status",
								"name": "UserModel[status]",
								"attribute": "status",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "用户状态必须是整数。"
									}
								}
							}, {
								"id": "usermodel-type",
								"name": "UserModel[type]",
								"attribute": "type",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "用户类型必须是整数。"
									}
								}
							}, {
								"id": "usermodel-is_seller",
								"name": "UserModel[is_seller]",
								"attribute": "is_seller",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否为卖家必须是整数。"
									}
								}
							}, {
								"id": "usermodel-is_real",
								"name": "UserModel[is_real]",
								"attribute": "is_real",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否通过实名认证必须是整数。"
									}
								}
							}, {
								"id": "usermodel-shopping_status",
								"name": "UserModel[shopping_status]",
								"attribute": "shopping_status",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否允许购物必须是整数。"
									}
								}
							}, {
								"id": "usermodel-comment_status",
								"name": "UserModel[comment_status]",
								"attribute": "comment_status",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否允许评论必须是整数。"
									}
								}
							}, {
								"id": "usermodel-user_money",
								"name": "UserModel[user_money]",
								"attribute": "user_money",
								"rules": {
									"number": true,
									"messages": {
										"number": "可提现余额必须是一个数字。"
									}
								}
							}, {
								"id": "usermodel-user_money_limit",
								"name": "UserModel[user_money_limit]",
								"attribute": "user_money_limit",
								"rules": {
									"number": true,
									"messages": {
										"number": "不可提现余额必须是一个数字。"
									}
								}
							}, {
								"id": "usermodel-frozen_money",
								"name": "UserModel[frozen_money]",
								"attribute": "frozen_money",
								"rules": {
									"number": true,
									"messages": {
										"number": "冻结金额必须是一个数字。"
									}
								}
							}, {
								"id": "usermodel-email",
								"name": "UserModel[email]",
								"attribute": "email",
								"rules": {
									"string": true,
									"messages": {
										"string": "邮箱地址必须是一条字符串。",
										"maxlength": "邮箱地址只能包含至多60个字。"
									},
									"maxlength": 60
								}
							}, {
								"id": "usermodel-address_now",
								"name": "UserModel[address_now]",
								"attribute": "address_now",
								"rules": {
									"string": true,
									"messages": {
										"string": "现居住地址必须是一条字符串。",
										"maxlength": "现居住地址只能包含至多60个字。"
									},
									"maxlength": 60
								}
							}, {
								"id": "usermodel-user_name",
								"name": "UserModel[user_name]",
								"attribute": "user_name",
								"rules": {
									"string": true,
									"messages": {
										"string": "用户名必须是一条字符串。",
										"minlength": "用户名应该包含至少4个字。",
										"maxlength": "用户名只能包含至多20个字。"
									},
									"minlength": 4,
									"maxlength": 20
								}
							}, {
								"id": "usermodel-nickname",
								"name": "UserModel[nickname]",
								"attribute": "nickname",
								"rules": {
									"string": true,
									"messages": {
										"string": "昵称必须是一条字符串。",
										"minlength": "昵称应该包含至少1个字。",
										"maxlength": "昵称只能包含至多20个字。"
									},
									"minlength": 1,
									"maxlength": 20
								}
							}, {
								"id": "usermodel-nickname",
								"name": "UserModel[nickname]",
								"attribute": "nickname",
								"rules": {
									"ajax": {
										"url": "\/user\/profile\/client-validate",
										"model": "YXBwXG1vZHVsZXNcdXNlclxtb2RlbHNcVXNlck1vZGVs",
										"attribute": "nickname",
										"params": []
									},
									"messages": {
										"ajax": "{attribute}的值\u0022{value}\u0022已经被占用了。"
									}
								}
							}, {
								"id": "usermodel-password",
								"name": "UserModel[password]",
								"attribute": "password",
								"rules": {
									"password": {
										"pattern": /^.{6,20}$/,
										"not": false,
										"skipOnEmpty": 1
									},
									"match": {
										"pattern": /\s+/,
										"not": true,
										"skipOnEmpty": 1
									},
									"messages": {
										"password": "登录密码长度为6-20个字符，建议由字母、数字和符号两种以上。",
										"match": "登录密码不能包含空格。"
									}
								}
							}, {
								"id": "usermodel-password",
								"name": "UserModel[password]",
								"attribute": "password",
								"rules": {
									"string": true,
									"messages": {
										"string": "登录密码必须是一条字符串。",
										"minlength": "登录密码应该包含至少6个字。",
										"maxlength": "登录密码只能包含至多20个字。"
									},
									"minlength": 6,
									"maxlength": 20
								}
							}, {
								"id": "usermodel-surplus_password",
								"name": "UserModel[surplus_password]",
								"attribute": "surplus_password",
								"rules": {
									"string": true,
									"messages": {
										"string": "余额支付密码必须是一条字符串。",
										"minlength": "余额支付密码应该包含至少6个字。",
										"maxlength": "余额支付密码只能包含至多20个字。"
									},
									"minlength": 6,
									"maxlength": 20
								}
							}, {
								"id": "usermodel-password_reset_token",
								"name": "UserModel[password_reset_token]",
								"attribute": "password_reset_token",
								"rules": {
									"string": true,
									"messages": {
										"string": "重置密码令牌必须是一条字符串。",
										"maxlength": "重置密码令牌只能包含至多255个字。"
									},
									"maxlength": 255
								}
							}, {
								"id": "usermodel-detail_address",
								"name": "UserModel[detail_address]",
								"attribute": "detail_address",
								"rules": {
									"string": true,
									"messages": {
										"string": "详细地址必须是一条字符串。",
										"maxlength": "详细地址只能包含至多255个字。"
									},
									"maxlength": 255
								}
							}, {
								"id": "usermodel-headimg",
								"name": "UserModel[headimg]",
								"attribute": "headimg",
								"rules": {
									"string": true,
									"messages": {
										"string": "头像必须是一条字符串。",
										"maxlength": "头像只能包含至多255个字。"
									},
									"maxlength": 255
								}
							}, {
								"id": "usermodel-auth_key",
								"name": "UserModel[auth_key]",
								"attribute": "auth_key",
								"rules": {
									"string": true,
									"messages": {
										"string": "授权码必须是一条字符串。",
										"maxlength": "授权码只能包含至多255个字。"
									},
									"maxlength": 255
								}
							}, {
								"id": "usermodel-user_remark",
								"name": "UserModel[user_remark]",
								"attribute": "user_remark",
								"rules": {
									"string": true,
									"messages": {
										"string": "会员备注必须是一条字符串。",
										"maxlength": "会员备注只能包含至多255个字。"
									},
									"maxlength": 255
								}
							}, {
								"id": "usermodel-salt",
								"name": "UserModel[salt]",
								"attribute": "salt",
								"rules": {
									"string": true,
									"messages": {
										"string": "混淆码必须是一条字符串。",
										"maxlength": "混淆码只能包含至多10个字。"
									},
									"maxlength": 10
								}
							}, {
								"id": "usermodel-reg_ip",
								"name": "UserModel[reg_ip]",
								"attribute": "reg_ip",
								"rules": {
									"string": true,
									"messages": {
										"string": "注册IP地址必须是一条字符串。",
										"maxlength": "注册IP地址只能包含至多40个字。"
									},
									"maxlength": 40
								}
							}, {
								"id": "usermodel-last_ip",
								"name": "UserModel[last_ip]",
								"attribute": "last_ip",
								"rules": {
									"string": true,
									"messages": {
										"string": "最近登录IP地址必须是一条字符串。",
										"maxlength": "最近登录IP地址只能包含至多40个字。"
									},
									"maxlength": 40
								}
							}, {
								"id": "usermodel-mobile",
								"name": "UserModel[mobile]",
								"attribute": "mobile",
								"rules": {
									"match": {
										"pattern": /^13[0-9]{1}[0-9]{8}$|15[0-9]{1}[0-9]{8}$|18[0-9]{1}[0-9]{8}$|17[0-9]{1}[0-9]{8}$|14[0-9]{1}[0-9]{8}$/,
										"not": false,
										"skipOnEmpty": 1
									},
									"messages": {
										"match": "手机号码是无效的。"
									}
								}
							}, {
								"id": "usermodel-email",
								"name": "UserModel[email]",
								"attribute": "email",
								"rules": {
									"email": {
										"pattern": /^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/,
										"fullPattern": /^[^@]*<[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?>$/,
										"allowName": false,
										"enableIDN": false,
										"skipOnEmpty": 1
									},
									"messages": {
										"email": "邮箱地址不是有效的邮箱地址。"
									}
								}
							}, {
								"id": "usermodel-user_name",
								"name": "UserModel[user_name]",
								"attribute": "user_name",
								"rules": {
									"ajax": {
										"url": "\/user\/profile\/client-validate",
										"model": "YXBwXG1vZHVsZXNcdXNlclxtb2RlbHNcVXNlck1vZGVs",
										"attribute": "user_name",
										"params": ["UserModel[user_id]"]
									},
									"messages": {
										"ajax": "{attribute}的值\u0022{value}\u0022已经被占用了。"
									}
								}
							}, {
								"id": "usermodel-mobile",
								"name": "UserModel[mobile]",
								"attribute": "mobile",
								"rules": {
									"ajax": {
										"url": "\/user\/profile\/client-validate",
										"model": "YXBwXG1vZHVsZXNcdXNlclxtb2RlbHNcVXNlck1vZGVs",
										"attribute": "mobile",
										"params": ["UserModel[user_id]"]
									},
									"messages": {
										"ajax": "{attribute}的值\u0022{value}\u0022已经被占用了。"
									}
								}
							}, {
								"id": "usermodel-email",
								"name": "UserModel[email]",
								"attribute": "email",
								"rules": {
									"ajax": {
										"url": "\/user\/profile\/client-validate",
										"model": "YXBwXG1vZHVsZXNcdXNlclxtb2RlbHNcVXNlck1vZGVs",
										"attribute": "email",
										"params": ["UserModel[user_id]"]
									},
									"messages": {
										"ajax": "{attribute}的值\u0022{value}\u0022已经被占用了。"
									}
								}
							}, {
								"id": "usermodel-sex",
								"name": "UserModel[sex]",
								"attribute": "sex",
								"rules": {
									"in": {
										"range": ["0", "1", "2"]
									},
									"messages": {
										"in": "性别是无效的。"
									}
								}
							}, {
								"id": "usermodel-reg_from",
								"name": "UserModel[reg_from]",
								"attribute": "reg_from",
								"rules": {
									"in": {
										"range": ["0", "1", "2", "3", "4", "5"]
									},
									"messages": {
										"in": "注册来源是无效的。"
									}
								}
							}, {
								"id": "usermodel-status",
								"name": "UserModel[status]",
								"attribute": "status",
								"rules": {
									"in": {
										"range": ["0", "1", "2", "3"]
									},
									"messages": {
										"in": "用户状态是无效的。"
									}
								}
							}, {
								"id": "usermodel-shopping_status",
								"name": "UserModel[shopping_status]",
								"attribute": "shopping_status",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "是否允许购物是无效的。"
									}
								}
							}, {
								"id": "usermodel-comment_status",
								"name": "UserModel[comment_status]",
								"attribute": "comment_status",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "是否允许评论是无效的。"
									}
								}
							}, {
								"id": "usermodel-type",
								"name": "UserModel[type]",
								"attribute": "type",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "用户类型是无效的。"
									}
								}
							}, {
								"id": "usermodel-is_seller",
								"name": "UserModel[is_seller]",
								"attribute": "is_seller",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "是否为卖家是无效的。"
									}
								}
							}, {
								"id": "usermodel-is_real",
								"name": "UserModel[is_real]",
								"attribute": "is_real",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "是否通过实名认证是无效的。"
									}
								}
							}, ]);
							$("#btn_submit").click(function() {
								if(!validator.form()) {
									return;
								}
								//加载提示
								$.loading.start();
								$("#UserModel").submit();
							});
							var validator_real = $("#UserRealModel").validate();
							// 验证规则，此验证规则会影响编辑器中JavaScript的的格式化操作
							$.validator.addRules([{
								"id": "userrealmodel-real_name",
								"name": "UserRealModel[real_name]",
								"attribute": "real_name",
								"rules": {
									"required": true,
									"messages": {
										"required": "真实姓名不能为空。"
									}
								}
							}, {
								"id": "userrealmodel-id_code",
								"name": "UserRealModel[id_code]",
								"attribute": "id_code",
								"rules": {
									"required": true,
									"messages": {
										"required": "身份证号码不能为空。"
									}
								}
							}, {
								"id": "userrealmodel-card_pic1",
								"name": "UserRealModel[card_pic1]",
								"attribute": "card_pic1",
								"rules": {
									"required": true,
									"messages": {
										"required": "身份证正面照不能为空。"
									}
								}
							}, {
								"id": "userrealmodel-card_pic2",
								"name": "UserRealModel[card_pic2]",
								"attribute": "card_pic2",
								"rules": {
									"required": true,
									"messages": {
										"required": "身份证背面照不能为空。"
									}
								}
							}, {
								"id": "userrealmodel-card_pic3",
								"name": "UserRealModel[card_pic3]",
								"attribute": "card_pic3",
								"rules": {
									"required": true,
									"messages": {
										"required": "本人手持身份证正面照不能为空。"
									}
								}
							}, {
								"id": "userrealmodel-user_id",
								"name": "UserRealModel[user_id]",
								"attribute": "user_id",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "用户基本信息ID必须是整数。"
									}
								}
							}, {
								"id": "userrealmodel-status",
								"name": "UserRealModel[status]",
								"attribute": "status",
								"rules": {
									"integer": true,
									"messages": {
										"integer": "是否通过实名认证必须是整数。"
									}
								}
							}, {
								"id": "userrealmodel-real_name",
								"name": "UserRealModel[real_name]",
								"attribute": "real_name",
								"rules": {
									"string": true,
									"messages": {
										"string": "真实姓名必须是一条字符串。",
										"maxlength": "真实姓名只能包含至多60个字。"
									},
									"maxlength": 60
								}
							}, {
								"id": "userrealmodel-address_now",
								"name": "UserRealModel[address_now]",
								"attribute": "address_now",
								"rules": {
									"string": true,
									"messages": {
										"string": "现居住地址必须是一条字符串。",
										"maxlength": "现居住地址只能包含至多60个字。"
									},
									"maxlength": 60
								}
							}, {
								"id": "userrealmodel-id_code",
								"name": "UserRealModel[id_code]",
								"attribute": "id_code",
								"rules": {
									"string": true,
									"messages": {
										"string": "身份证号码必须是一条字符串。",
										"maxlength": "身份证号码只能包含至多18个字。"
									},
									"maxlength": 18
								}
							}, {
								"id": "userrealmodel-id_code",
								"name": "UserRealModel[id_code]",
								"attribute": "id_code",
								"rules": {
									"match": {
										"pattern": /^[0-9]{14}[X|x]$|[0-9]{17}[X|x]$|[0-9]{18}$/,
										"not": false,
										"skipOnEmpty": 1
									},
									"messages": {
										"match": "身份证号码是无效的。"
									}
								}
							}, {
								"id": "userrealmodel-status",
								"name": "UserRealModel[status]",
								"attribute": "status",
								"rules": {
									"in": {
										"range": ["0", "1"]
									},
									"messages": {
										"in": "是否通过实名认证是无效的。"
									}
								}
							}, ]);
							$("#btn_submit_real").click(function() {
								if(!validator_real.form()) {
									return;
								}
								//加载提示
								$.loading.start();
								$("#UserModel").submit();
							});
						});
					</script>
				</div>
				<!-- 正文结束，由view提供 -->
				
			</div>
		</div>

		<!-- 引入底部文件 -->
		<!-- 底部 _start-->
		<div class="site-footer">
			<div class="footer-related">
				<div class="footer-info">
					<div class="info-text">
						<!-- 底部导航 -->
						<p class="nav-bottom">
						</p>
						<p>
							Copyright 源代码教育咨询有限公司(www.itsource.cn) 版权所有
							<a href="http://www.miibeian.gov.cn/" target="_blank">蜀ICP备88888888号</a>
						</p>
						<p class="company-info" style="display: none;">四川省成都市高新区天府新谷</p>
						<p class="qualified">
						</p>
					</div>

				</div>

			</div>
		</div>
		<script type="text/javascript" src="js/jquery.fly.min.js"></script>
	</body>

	</html>